<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://org.nature.framework/jsp/tag" prefix="n"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; UTF-8">
<title>view/user</title>
</head>
<body>
	[<a href="list?locale=zh_CN">中文</a>|<a href="list?locale=en_US">英文</a>]
	<br>
	<a href="toOper"><n:i18n name="nature.add"/></a>${basePath}
	<table>
		<tr>
			<td>序号</td><td>名字</td><td>性别</td><td>年龄</td><td>操作</td>
		</tr> 
		<c:forEach items="${page.dataList}" var="user" >
		<tr>
			<td>${user.id}</td><td>${user.name}</td><td>${user.age }</td><td>${user.sex}</td>
			<td>
			<a href="toOper?user.id=${user.id}"><n:i18n name="nature.edit"/></a>
			|
			<n:auth prem="/user/delete">
			<a href="delete?user.id=${user.id}"><n:i18n name="nature.delete"/></a>
			</n:auth>
			</td>
		</tr>
		</c:forEach>
	</table>
	<br/>
	${page.pagination }
</body>
</html>